package com.oddpointcc.szpt.accounting.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.oddpointcc.szpt.accounting.component.Link;;

@Controller
public class TestController {

	@Link(label = "表单", family = "admin", parent = "")
	@RequestMapping("/admin/")
	public String admin() {
		return "admin/test";
	}

	@Link(label = "表格", family = "admin", parent = "表单")
	@RequestMapping("/admin/table")
	public String admin1() {
		return "admin/table";
	}

	@RequestMapping("/admin/error")
	public String error() {
		if (true) {
			throw new RuntimeException("错误测试");
		}
		return null;
	}

}
